# -*- coding: utf-8 -*-
#
from google.appengine.api import xmpp
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class XMPPHandler(webapp.RequestHandler):
    def post(self):
        message = xmpp.Message(self.request.POST)
        message.reply(message.body)

app = webapp.WSGIApplication(
                    [
                    ('/_ah/xmpp/message/chat/', XMPPHandler)
                    ],
                    debug=True)
